import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const dashboard: AppRouteModule = {
  path: '/datas',
  name: 'Datas',
  component: LAYOUT,
  redirect: '/datas/index',
  meta: {
    icon: 'ant-design:security-scan',
    title: t('数据中心'),
    orderNo: 20,
  },
  children: [
    {
      path: 'signingMember',
      name: 'SigningMember',
      component: () => import('/@/views/datas/signingMember/SigningMemberList.vue'),
      meta: {
        title: t('签约人才'),
        icon: 'ant-design:file-protect',
        orderNo: 1,
      },
    },
    {
      path: 'recharge',
      name: 'Recharge',
      component: () => import('/@/views/datas/recharge/CaishuiRechargeList.vue'),
      meta: {
        title: t('充值明细'),
        icon: 'ant-design:trademark-outlined',
        orderNo: 5,
      },
    },
    {
      path: 'withdraw',
      name: 'Withdraw',
      component: () => import('/@/views/datas/withdraw/CaishuiWithdrawList.vue'),
      meta: {
        title: t('发放列表'),
        icon: 'ant-design:pay-circle-outlined',
        orderNo: 10,
      },
    },
    {
      path: 'refundRecord',
      name: 'RefundRecord',
      component: () => import('/@/views/datas/refundRecord/CaishuiRefundRecordList.vue'),
      meta: {
        title: t('退款记录'),
        icon: 'ant-design:file-protect-outlined',
        orderNo: 15,
      },
    },
  ],
};

export default dashboard;
